#ifndef GEOMETRY_H_
#define GEOMETRY_H_

#include <e32base.h>

static TInt ZeroException = -10;

class TRealVector
	{
public:
	TReal iX;
	TReal iY;
	
public:
	TRealVector();
	TRealVector( TReal aX, TReal aY );

public:
	TReal GetLength();
	TRealVector GetUnit();
	TRealVector Mirror( TRealVector aVector );
	void operator += ( TRealVector aDel );
	void operator *= ( TReal aFactor );
	friend TRealVector operator * ( TRealVector aVector, TReal aFactor );
	friend TReal operator * ( TRealVector aVec1, TRealVector aVec2 );
	friend TRealVector operator + ( TRealVector aVec1, TRealVector aVec2 );
	friend TRealVector operator - ( TRealVector aVec1, TRealVector aVec2 );
	};

class TRealPoint
	{
public:
	TReal iX;
	TReal iY;

public:
	TRealPoint();
	TRealPoint(TReal aX, TReal aY);
	
public:
	void operator += ( TRealVector aVec );
	friend TRealPoint operator + ( TRealPoint aPoint, TRealVector aVec );
	friend TRealPoint operator - ( TRealPoint aPoint, TRealVector aVec );
	};


#endif /* GEOMETRY_H_ */
